package com.one.square.user.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.one.square.core.domain.LoginAppUser;
import com.one.square.core.entity.SysUser;

/**
 * @author cwm
 * @Description
 * @date 2021/10/21 下午12:27
 * @Version 1.0
 */
public interface SysUserService extends IService<SysUser> {
    /**
     *  根据用户名查询用户对象
     * @param username
     * @return
     */
    LoginAppUser findByUsername(String username);

    /**
     * 根据手机号码查询用户对象
     * @param mobile
     * @return
     */
    LoginAppUser findByMobile(String mobile);
}
